<?php

namespace App\Api\Logic\Validate;

class TransferMoneyValidate extends BaseValidate
{
    /**
     * 验证规则
     * @var array
     */
    protected $rule = [
        'to_mobile'=>'required',
        'money'=>'required',
        'pay_password'=>'required',
        'id'=>'required'
    ];

    /**
     * 消息提示
     * @var array
     */
    protected $message = [
        'to_mobile.required'=>'请输入收款人手机号',
        'money.required'=>'请输入转账金额',
        'pay_password.required'=>'请输入支付密码',
        'id.required'=>'请输入查询的数据id'
    ];

    /**
     * 验证的场景
     * @var array
     */
    protected $scene = [
        'to_user_money'=>'to_mobile,money,pay_password',
        'getToUserMoneyInfo'=>'id',
        'confirmUserMoney'=>'id'
    ];

}
